gtk4.git
10 years agoflowbox: Add element names
Matthias Clasen [Thu, 5 Nov 2015 20:23:44 +0000 (15:23 -0500)]
flowbox: Add element names

The names used here are flowbox and flowboxchild.

10 years agoAdwaita: Update listbox styling
Matthias Clasen [Thu, 5 Nov 2015 18:53:43 +0000 (13:53 -0500)]
Adwaita: Update listbox styling

Adapt to the changes in the previous commit.

10 years agoplacessidebar: Use the same element name for rows
Matthias Clasen [Thu, 5 Nov 2015 18:51:58 +0000 (13:51 -0500)]
placessidebar: Use the same element name for rows

Use row as the element name here too.

10 years agolistbox: Add element names
Matthias Clasen [Thu, 5 Nov 2015 18:48:02 +0000 (13:48 -0500)]
listbox: Add element names

The names used here are list and row.

10 years agoaspect frame: Use an element name
Matthias Clasen [Thu, 5 Nov 2015 17:53:46 +0000 (12:53 -0500)]
aspect frame: Use an element name

10 years agoplaces sidebar: Document style classes
Matthias Clasen [Thu, 5 Nov 2015 15:51:54 +0000 (10:51 -0500)]
places sidebar: Document style classes

Document the style classes that GtkPlacesSidebar uses on its rows.

10 years agogtk3-demo: Add open file to the application demo
Alexander Larsson [Thu, 5 Nov 2015 15:25:59 +0000 (16:25 +0100)]
gtk3-demo: Add open file to the application demo

10 years agodocs: Move GtkNativeDialog section to "abstract base classes"
Alexander Larsson [Thu, 5 Nov 2015 14:59:08 +0000 (15:59 +0100)]
docs: Move GtkNativeDialog section to "abstract base classes"

10 years agoMention native file choosers in NEWS
Alexander Larsson [Thu, 5 Nov 2015 14:18:57 +0000 (15:18 +0100)]
Mention native file choosers in NEWS

10 years agotestgtk: Add native dialog tests
Alexander Larsson [Mon, 2 Nov 2015 15:19:02 +0000 (16:19 +0100)]
testgtk: Add native dialog tests

10 years agoGtkFileChooserButton: Use native dialogs
Alexander Larsson [Thu, 29 Oct 2015 14:13:14 +0000 (15:13 +0100)]
GtkFileChooserButton: Use native dialogs

Unless you explicitly set the dialog constructor property we use a
native dialog (GtkFileChooserNative).

10 years agoGtkFileChooserNative: Fallback and win32 implementation
Alexander Larsson [Thu, 29 Oct 2015 14:06:57 +0000 (15:06 +0100)]
GtkFileChooserNative: Fallback and win32 implementation

This is a subclass on GtkNativeDialog that uses GtkFileChooserDialog
as a fallback, but also has support for the win32 file chooser dialog.

10 years agoGtkFileFilter: Add private function to represent filter as pattern
Alexander Larsson [Tue, 3 Nov 2015 13:52:42 +0000 (14:52 +0100)]
GtkFileFilter: Add private function to represent filter as pattern

This will be needed for the win32 native file chooser which
does not support mimetype sniffing.

10 years agoAdd GtkNativeDialog abstract base class
Alexander Larsson [Thu, 29 Oct 2015 13:59:48 +0000 (14:59 +0100)]
Add GtkNativeDialog abstract base class

This is a base class that essentially mirrors GtkDialog, but
it is not a GtkWindow, as the actual implemetation will be using
native code.

The base class has show and hide vfuncs, as well as a helper function
to run the dialog in a modal fashion.

This will be later used by the native file chooser dialog.

10 years agoMake GtkFileChooser interface require a GObject
Alexander Larsson [Thu, 29 Oct 2015 13:55:48 +0000 (14:55 +0100)]
Make GtkFileChooser interface require a GObject

Before all GtkFileChooser implementations had to be a GtkWidget,
but we want to introduce one for native implementations that
is not a widget.

This is technically an ABI break, because some code could rely
on the guarantee that GtkFileChoosers are GtkWidgets and do
unchecked GtkWidget calls. However, that does seem unlikely,
and this has not really been documented anywhere.

10 years agoTreeModelFilter: Fix uninitialized memory read.
Alexander Larsson [Thu, 29 Oct 2015 14:17:44 +0000 (15:17 +0100)]
TreeModelFilter: Fix uninitialized memory read.

We were copying an iterator that sometimes was not initialized,
which caused debugger warnings in VS2015.

10 years agoHighContrast: Update places sidebar styling
Matthias Clasen [Thu, 5 Nov 2015 15:41:53 +0000 (10:41 -0500)]
HighContrast: Update places sidebar styling

Use the new element name.

10 years agoAdwaita: Update places sidebar styling
Matthias Clasen [Thu, 5 Nov 2015 15:38:01 +0000 (10:38 -0500)]
Adwaita: Update places sidebar styling

Use the new element name.

10 years agoplacessidebar: Use an element name
Matthias Clasen [Thu, 5 Nov 2015 15:36:17 +0000 (10:36 -0500)]
placessidebar: Use an element name

Set the element name placessidebar.

10 years agoscrolledwindow: Use permanent CSS nodes
Matthias Clasen [Thu, 5 Nov 2015 15:32:04 +0000 (10:32 -0500)]
scrolledwindow: Use permanent CSS nodes

This avoids false inheritance due to gtk_style_context_save_named(),
and is generally the right thing to do.

10 years agoFix a crash with steppers
Matthias Clasen [Thu, 5 Nov 2015 14:41:10 +0000 (09:41 -0500)]
Fix a crash with steppers

The introduction of the trough node was not properly carried
into the code constructing stepper nodes, and was causing
assertion failures there. This was only showing up on Windows,
since Adwaita and HighContrast don't have steppers.

10 years agogtk3-demo: Drop .sidebar class
Matthias Clasen [Thu, 5 Nov 2015 14:09:33 +0000 (09:09 -0500)]
gtk3-demo: Drop .sidebar class

This makes no visual difference at all, and the .sidebar class
is causing some complications with the current CSS node transition.

10 years agostack sidebar: Remove an unused variable
Matthias Clasen [Thu, 5 Nov 2015 14:08:20 +0000 (09:08 -0500)]
stack sidebar: Remove an unused variable

10 years agocheckmenuitem: Update CSS nodes on set_active()
Benjamin Otte [Thu, 5 Nov 2015 14:22:05 +0000 (15:22 +0100)]
checkmenuitem: Update CSS nodes on set_active()

The function only doesn't notify(). It is supposed to handle CSS
changes.

10 years agostack: Store actual widget size, not preferred size
Benjamin Otte [Thu, 5 Nov 2015 03:06:09 +0000 (04:06 +0100)]
stack: Store actual widget size, not preferred size

This is just a cleanup commit, no actual bug.

10 years agowidget: Avoid critical warnings when disconnecting plain GtkEventControllers
Carlos Garnacho [Thu, 5 Nov 2015 12:13:37 +0000 (13:13 +0100)]
widget: Avoid critical warnings when disconnecting plain GtkEventControllers

This signal is only set on GtkGesture objects, so check it's really there
before disconnecting.

10 years agoAdwaita: Update stack sidebar styling
Matthias Clasen [Thu, 5 Nov 2015 13:18:38 +0000 (08:18 -0500)]
Adwaita: Update stack sidebar styling

We no longer use the .sidebar-item style class.

10 years agostack sidebar: Drop the .sidebar-item style class
Matthias Clasen [Thu, 5 Nov 2015 13:18:06 +0000 (08:18 -0500)]
stack sidebar: Drop the .sidebar-item style class

It is not needed to achieve the desired theming.

10 years agostack switcher: Clarify CSS documentation
Matthias Clasen [Thu, 5 Nov 2015 13:17:49 +0000 (08:17 -0500)]
stack switcher: Clarify CSS documentation

10 years agoHighContrast: Update filechooser styling
Matthias Clasen [Thu, 5 Nov 2015 12:45:39 +0000 (07:45 -0500)]
HighContrast: Update filechooser styling

Update for changes in previous commit.

10 years agoAdwaita: Update searchbar styling
Matthias Clasen [Thu, 5 Nov 2015 12:44:29 +0000 (07:44 -0500)]
Adwaita: Update searchbar styling

Adapt to the changes in the previous commit.

10 years agosearchbar: Stop adding a style class
Matthias Clasen [Thu, 5 Nov 2015 12:44:04 +0000 (07:44 -0500)]
searchbar: Stop adding a style class

We have an element name now.

10 years agofile chooser: Don't use .search-bar for a box
Matthias Clasen [Thu, 5 Nov 2015 12:40:48 +0000 (07:40 -0500)]
file chooser: Don't use .search-bar for a box

Just use the more general .view class to avoid special-casing
the file chooser in the theme.

10 years agorange: Redraw when slider visiblity changes
Matthias Clasen [Thu, 5 Nov 2015 12:23:54 +0000 (07:23 -0500)]
range: Redraw when slider visiblity changes

We were not queuing a draw (and not updating the CSS node) when
the slider visibility changed. This was exposed by the Trough
button in tests/testscale.
Fix this by taking slider visibility into account when deciding
whether to queue a draw in response to adjustment changes.

10 years agoHighContrast: Update scale styling
Matthias Clasen [Thu, 5 Nov 2015 12:01:57 +0000 (07:01 -0500)]
HighContrast: Update scale styling

10 years agoAdwaita: Update scale styling
Matthias Clasen [Thu, 5 Nov 2015 11:46:31 +0000 (06:46 -0500)]
Adwaita: Update scale styling

Adapt to the introduction of trough nodes.

10 years agoscale: Split marks node into two
Matthias Clasen [Thu, 5 Nov 2015 11:45:24 +0000 (06:45 -0500)]
scale: Split marks node into two

Use separate CSS nodes for the marks above and below the trough.

10 years agorange: Add private api to get the trough node
Matthias Clasen [Thu, 5 Nov 2015 11:47:10 +0000 (06:47 -0500)]
range: Add private api to get the trough node

This will be needed in range subclasses to position their
own subnodes.

10 years agoHighContrast: Update range styling
Matthias Clasen [Thu, 5 Nov 2015 05:29:14 +0000 (00:29 -0500)]
HighContrast: Update range styling

Adjust to the changes in the previous commit.

10 years agoAdwaita: Update range styling
Matthias Clasen [Thu, 5 Nov 2015 05:20:50 +0000 (00:20 -0500)]
Adwaita: Update range styling

Adjust to the changes in the previous commit. This partially
undoes the earlier range changes.

10 years agorange: Add a CSS node for the trough
Matthias Clasen [Thu, 5 Nov 2015 05:20:05 +0000 (00:20 -0500)]
range: Add a CSS node for the trough

This is in sync with what we do elsewhere for troughs.

10 years agostack: Queue a resize/allocate when switching children
Benjamin Otte [Wed, 4 Nov 2015 18:11:14 +0000 (19:11 +0100)]
stack: Queue a resize/allocate when switching children

We only allocate a size to the currently visible child, so we obviously
need to rerun allocation when the visible child changes.

In the case where the stack is not homogenous, we also need to queue a
resize because our size request just changed.

10 years agotests: Make stack expand
Benjamin Otte [Wed, 4 Nov 2015 18:10:16 +0000 (19:10 +0100)]
tests: Make stack expand

This is to test invisible children are actually resized before they are
made visible (which they currrently are not.

10 years agoHighContrast: Update progressbar styling
Matthias Clasen [Wed, 4 Nov 2015 17:43:06 +0000 (12:43 -0500)]
HighContrast: Update progressbar styling

Adjust to the chagnes in the previous commit. This partially
undoes the earlier progressbar changes.

10 years agoAdwaita: Update progressbar styling
Matthias Clasen [Wed, 4 Nov 2015 17:33:06 +0000 (12:33 -0500)]
Adwaita: Update progressbar styling

Adjust to the changes in the previous commit. This partially
undoes the earlier progressbar changes.

10 years agoprogressbar: Add a CSS node for trough
Matthias Clasen [Wed, 4 Nov 2015 17:32:15 +0000 (12:32 -0500)]
progressbar: Add a CSS node for trough

This is better, since the trough doesn't fill up the allocation
entirely.

10 years agopopover: Add the .background style class
Matthias Clasen [Wed, 4 Nov 2015 17:01:26 +0000 (12:01 -0500)]
popover: Add the .background style class

This style class indicates that something _requires_ a background,
which is clearly the case for popovers.

10 years agopaned: Move .wide to CSS subnode
Matthias Clasen [Wed, 4 Nov 2015 16:45:10 +0000 (11:45 -0500)]
paned: Move .wide to CSS subnode

This fits better with our general use of style classes.

10 years agorevealer: Use an element name
Matthias Clasen [Wed, 4 Nov 2015 15:11:06 +0000 (10:11 -0500)]
revealer: Use an element name

10 years agoscrolledwindow: Fix a typo
Krzesimir Nowak [Wed, 4 Nov 2015 13:19:13 +0000 (14:19 +0100)]
scrolledwindow: Fix a typo

10 years agoHighContrast: Update scrolled window styling
Matthias Clasen [Wed, 4 Nov 2015 12:36:49 +0000 (07:36 -0500)]
HighContrast: Update scrolled window styling

Adapt to the changes in the previous commit.

10 years agoAdwaita: Update scrolledwindow styling
Matthias Clasen [Wed, 4 Nov 2015 12:30:19 +0000 (07:30 -0500)]
Adwaita: Update scrolledwindow styling

Adapt to the changes in the previous commit.

10 years agoscrolledwindow: Port to CSS nodes
Matthias Clasen [Wed, 4 Nov 2015 12:29:33 +0000 (07:29 -0500)]
scrolledwindow: Port to CSS nodes

Change GtkScrolledWindow to use transient named CSS nodes for
drawing the overshoot, undershoot and scrollbar junction.

10 years agodocs: Point at for_scale() variants
Emmanuele Bassi [Wed, 4 Nov 2015 11:50:37 +0000 (11:50 +0000)]
docs: Point at for_scale() variants

Using lookup_icon() and lookup_by_gicon() with a size multiplied by a
scaling factor is almost certainly going to get worse results than using
their for_scale() variants.

10 years agodocs: Clarify gtk_render_icon()'s behaviour
Emmanuele Bassi [Wed, 4 Nov 2015 11:45:41 +0000 (11:45 +0000)]
docs: Clarify gtk_render_icon()'s behaviour

A GdkPixbuf has no scaling factor, so drawing directly from it can only
using a scale of 1, to avoid blurry, fuzzy icons.

You should be using gtk_render_icon_surface() anyway.

10 years agodocs: Fix typo in gdk_screen_get_scale_factor()
Emmanuele Bassi [Wed, 4 Nov 2015 11:45:19 +0000 (11:45 +0000)]
docs: Fix typo in gdk_screen_get_scale_factor()

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 4 Nov 2015 07:59:07 +0000 (07:59 +0000)]
Updated Portuguese translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Wed, 4 Nov 2015 07:52:34 +0000 (07:52 +0000)]
Updated Portuguese translation

10 years agoinspector: Some improvements to the CSS node tree
Matthias Clasen [Wed, 4 Nov 2015 05:00:56 +0000 (00:00 -0500)]
inspector: Some improvements to the CSS node tree

Set a min-content-height for the property list, and
allow horizontal scrolling.

10 years agoinspector: Really show the selected CSS node
Matthias Clasen [Wed, 4 Nov 2015 04:55:50 +0000 (23:55 -0500)]
inspector: Really show the selected CSS node

Try harder to scroll the selected CSS node into view.

10 years agoscale: Fix a crash
Matthias Clasen [Wed, 4 Nov 2015 04:35:32 +0000 (23:35 -0500)]
scale: Fix a crash

We can only free the marks_node if there is one.

10 years agostack sidebar: Use an element name
Matthias Clasen [Wed, 4 Nov 2015 04:27:34 +0000 (23:27 -0500)]
stack sidebar: Use an element name

10 years agostack switcher: Use an element name
Matthias Clasen [Wed, 4 Nov 2015 04:24:49 +0000 (23:24 -0500)]
stack switcher: Use an element name

10 years agowidget-factory: Stop using deprecated API
Matthias Clasen [Wed, 4 Nov 2015 04:24:13 +0000 (23:24 -0500)]
widget-factory: Stop using deprecated API

10 years agostack: Set an element name
Matthias Clasen [Wed, 4 Nov 2015 04:19:28 +0000 (23:19 -0500)]
stack: Set an element name

And it is...stack.

10 years agoHighContrast: Update range styling
Matthias Clasen [Wed, 4 Nov 2015 04:16:45 +0000 (23:16 -0500)]
HighContrast: Update range styling

Adapt to changes in the previous commit.

10 years agoAdwaita: Update range styling
Matthias Clasen [Wed, 4 Nov 2015 04:12:54 +0000 (23:12 -0500)]
Adwaita: Update range styling

Adapt to the changes in the previous commit.

10 years agorange: Convert to CSS nodes
Matthias Clasen [Wed, 4 Nov 2015 04:11:52 +0000 (23:11 -0500)]
range: Convert to CSS nodes

Use CSS nodes for GtkScale and GtkScrollbar. See their documentation
for details on what subnodes with what names exist.

10 years agotestutils: Deprecate a bunch of ugly functions
Benjamin Otte [Wed, 4 Nov 2015 04:06:31 +0000 (05:06 +0100)]
testutils: Deprecate a bunch of ugly functions

We've by now disabled and then remved all of the tests that use these
functions because they never worked properly. So let's depecate these
functions before somebody starts using them.

10 years agotestsuite: Remove a bunch of broken tests
Benjamin Otte [Wed, 4 Nov 2015 03:50:18 +0000 (04:50 +0100)]
testsuite: Remove a bunch of broken tests

These tests have either been commented out for way too long or use APIs
that we don't want to support.

10 years agostack: GtkStack:interpolate-size should be read/write
Christian Hergert [Tue, 3 Nov 2015 23:13:51 +0000 (15:13 -0800)]
stack: GtkStack:interpolate-size should be read/write

It looks like the param spec for interpolate-size was
copied from the line above it, which is a read only property.

There is a setter for interpolate-size, and it is implemented in
set_property().

10 years agoheaderbar: remove G_PARAM_CONSTRUCT from custom-title
Christian Hergert [Tue, 3 Nov 2015 22:36:54 +0000 (14:36 -0800)]
headerbar: remove G_PARAM_CONSTRUCT from custom-title

This fixes the ability to sublcass GtkHeaderBar from a UI template which
contains a custom <child type="title"> element.

https://bugzilla.gnome.org/show_bug.cgi?id=757544

10 years agowidget: Queue resize on parent, not self
Benjamin Otte [Tue, 3 Nov 2015 21:51:01 +0000 (22:51 +0100)]
widget: Queue resize on parent, not self

When setting the parent of a widget, queue_resize() on the widget will
be optimized away if the widget already had a resize queued.

Plus, we do not need to resize the widget as its size request is not
going to change.

10 years agomenu: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 19:24:25 +0000 (14:24 -0500)]
menu: Add diagrams to CSS documentation

10 years agopaned: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 19:21:30 +0000 (14:21 -0500)]
paned: Add diagrams to CSS documentation

10 years agocombo box: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 19:19:08 +0000 (14:19 -0500)]
combo box: Add diagrams to CSS documentation

10 years agotext view: Add diagram to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 18:49:07 +0000 (13:49 -0500)]
text view: Add diagram to CSS documentation

10 years agoaccel label: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 18:39:14 +0000 (13:39 -0500)]
accel label: Add diagrams to CSS documentation

10 years agoprogressbar: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 18:37:57 +0000 (13:37 -0500)]
progressbar: Add diagrams to CSS documentation

10 years agospin button: Add diagrams to CSS documentation
Matthias Clasen [Tue, 3 Nov 2015 18:36:26 +0000 (13:36 -0500)]
spin button: Add diagrams to CSS documentation

10 years agoswitch: Add a diagram to CSS node documentation
Matthias Clasen [Tue, 3 Nov 2015 18:28:52 +0000 (13:28 -0500)]
switch: Add a diagram to CSS node documentation

10 years agowidget: Queue an allocate on hide
Benjamin Otte [Tue, 3 Nov 2015 17:53:45 +0000 (18:53 +0100)]
widget: Queue an allocate on hide

This makes sure that hidden widgets always have priv->alloc_needed set
on them.

The constructor sets that flag, so we want to have it back when we
revert to this state.

This fixes GtkWindow skipping a size_allocate() when reshowing a
previously hidden window and thereby not updating its allocation and
clip. And that in turn would lead to draws not happening and us beig
left with a black window.

10 years agomodel button: Add diagrams to the CSS node documentation
Matthias Clasen [Tue, 3 Nov 2015 17:51:52 +0000 (12:51 -0500)]
model button: Add diagrams to the CSS node documentation

10 years agomodel button: Complete the CSS node conversion
Matthias Clasen [Tue, 3 Nov 2015 17:20:53 +0000 (12:20 -0500)]
model button: Complete the CSS node conversion

There was still style context saving in the draw function,
and the CSS node was not always properly updated and positioned.
Fix these things, and use the same CSS node for the arrow
drawing as well.

10 years agolist box: Remove an unused static
Matthias Clasen [Tue, 3 Nov 2015 15:43:48 +0000 (10:43 -0500)]
list box: Remove an unused static

10 years agofile chooser button: Remove an unused variable
Matthias Clasen [Tue, 3 Nov 2015 15:41:49 +0000 (10:41 -0500)]
file chooser button: Remove an unused variable

10 years agobutton: Add diagrams to CSS node docs for buttons
Matthias Clasen [Tue, 3 Nov 2015 15:17:41 +0000 (10:17 -0500)]
button: Add diagrams to CSS node docs for buttons

10 years agoentry: Add a diagram to CSS node docs
Matthias Clasen [Tue, 3 Nov 2015 14:53:00 +0000 (09:53 -0500)]
entry: Add a diagram to CSS node docs

10 years agoinspector: Replace a use of gtk_button_set_focus_on_click
Matthias Clasen [Tue, 3 Nov 2015 12:42:05 +0000 (07:42 -0500)]
inspector: Replace a use of gtk_button_set_focus_on_click

It is deprecated now.

10 years agolistbox: Implement :focus-on-click
Florian Müllner [Fri, 23 Oct 2015 20:43:11 +0000 (22:43 +0200)]
listbox: Implement :focus-on-click

Similar to buttons-in-toolbars, it can make sense for listbox rows
to not take away the focus from the main application view, for
instance when used for navigation. Support this by taking the newly
added GtkWidget:focus-on-click property into account.

https://bugzilla.gnome.org/show_bug.cgi?id=757269

10 years agoUse gtk_widget_set_focus_on_click() instead of deprecated setters
Florian Müllner [Fri, 23 Oct 2015 20:13:30 +0000 (22:13 +0200)]
Use gtk_widget_set_focus_on_click() instead of deprecated setters

https://bugzilla.gnome.org/show_bug.cgi?id=757269

10 years agoDeprecate widget-specific :focus-on-click properties
Florian Müllner [Fri, 23 Oct 2015 16:39:01 +0000 (18:39 +0200)]
Deprecate widget-specific :focus-on-click properties

The differences between the existing properties and the newly added
GtkWidget:focus-on-click property are minimal (different owner_type
in GParamSpec), so it is extremely unlikely that dropping the former
would break anything.

https://bugzilla.gnome.org/show_bug.cgi?id=757269

10 years agowidget: Add :focus-on-click property
Florian Müllner [Fri, 23 Oct 2015 16:07:41 +0000 (18:07 +0200)]
widget: Add :focus-on-click property

There are currently three widget that implement such a property, and
there are other widgets for which the behavior can make sense. It
seems like a good time to add the property to GtkWidget itself so
subclasses can choose to respect it without adding their own property.

https://bugzilla.gnome.org/show_bug.cgi?id=757269

10 years agoGdkDevice: Do not free construct-only properties data on dispose()
Carlos Garnacho [Fri, 16 Oct 2015 17:52:50 +0000 (19:52 +0200)]
GdkDevice: Do not free construct-only properties data on dispose()

Those are not references to other objects, and the device will be mostly
useless if those can't be set again anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=756625

10 years agotexthandle: Request raising of text handle popovers.
Carlos Garnacho [Thu, 22 Oct 2015 16:14:01 +0000 (18:14 +0200)]
texthandle: Request raising of text handle popovers.

https://bugzilla.gnome.org/show_bug.cgi?id=756670

10 years agopopover: Request raise on ::show
Carlos Garnacho [Thu, 22 Oct 2015 16:13:19 +0000 (18:13 +0200)]
popover: Request raise on ::show

This way latest shown popovers are ensured to be on top.

https://bugzilla.gnome.org/show_bug.cgi?id=756670

10 years agoGtkWindow: make popover stacking explicit
Carlos Garnacho [Thu, 22 Oct 2015 16:09:23 +0000 (18:09 +0200)]
GtkWindow: make popover stacking explicit

The list of popovers will specify the stacking order, a
_gtk_window_raise_popover() private call has been added so popover
widgets can request being on top.

Also, the stacking on popovers is ensured on gtk_window_size_allocate(),
after the size/stacking changes on the child widget have finished, this
will ensure popovers are kept on top of window contents.

https://bugzilla.gnome.org/show_bug.cgi?id=756670

10 years agox11: Detect single-touch touchscreens as GDK_SOURCE_TOUCHSCREEN
Carlos Garnacho [Fri, 30 Oct 2015 13:10:19 +0000 (14:10 +0100)]
x11: Detect single-touch touchscreens as GDK_SOURCE_TOUCHSCREEN

Those won't have ABS_MT_* axes, so won't be reported has having
XITouchClassInfo. Fallback on these to checking whether abs x/y axes are
available. After the Wacom checks, any remaining device with absolute axes
should be touchscreens, and GDK_SOURCE_MOUSE does indeed just make sense on
devices with relative axes.

https://bugzilla.gnome.org/show_bug.cgi?id=757358

10 years agoFix a memory leak in gtk-3.0.m4 file
Dhiru Kholia [Tue, 27 Oct 2015 21:08:59 +0000 (22:08 +0100)]
Fix a memory leak in gtk-3.0.m4 file

This fix is inspired by,

https://git.gnome.org/browse/glib/tree/m4macros/glib-2.0.m4

https://bugzilla.gnome.org/show_bug.cgi?id=757221

10 years agoGtkWindow: Fix the shadow width logic
Olivier Fourdan [Fri, 30 Oct 2015 16:38:25 +0000 (17:38 +0100)]
GtkWindow: Fix the shadow width logic

Previous commit 305b34a "GtkWindow: fix move/get position with CSD"
introduced a regression because some windows presumably use shadows but
actually don't, resulting in a negative offset being wrongly applied.

Problem is that get_shadow_width() would return non-zero shadows even
for windows that have no shadow, thus causing the negative offset.

Fix the logic in get_shadow_width() and gtk_window_should_use_csd() so
that get_shadow_width() returns accurate values.

Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618